<?php

$config = [
    'components' => [
        'errorHandler' => [
            'class' => 'yii\web\ErrorAction',
            'errorAction' => 'admin/default/error',
        ],
    ],
];
return $config;